import { CardEditableParamsDefault, CardDataEditableParamsCommonDefault } from "@/views/card/js/data/cardDatas/card-datas-default.js";
import TooltipsData from "@/views/card/js/data/tooltipsData/tooltips-data.js";
const CARD_JY0005216 =  {
    obj_52: {
      ...CardEditableParamsDefault.Obj,
      label: '52参数',
      param_params: {
        // title: {
        //   ...CardEditableParamsDefault.InputNormal,
        //   label: '标题',
        //   placeholder: '请填入标题',
        // },
        // width: {  // Number
        //   ...CardEditableParamsDefault.SliderNormal,
        //   label: '图片宽度比',
        //   max: 100,
        //   step: 5,
        //   unit: '%',
        // },
        // height: { // Number
        //   ...CardEditableParamsDefault.SliderNormal,
        //   label: '图片高度比',
        //   max: 100,
        //   step: 5,
        //   unit: '%',
        // },
        type: {  // 1表示只有描述信息、2表示有描述信息和价格信息
          ...CardEditableParamsDefault.DropdownNormal,
          label: '信息展示类型',
          placeholder: '请选择展示类型',
          valLists: [
            {
              name: '只有描述信息',
              value: '1',
            },
            {
              name: '描述信息+价格信息',
              value: '2',
            },
          ],
          // disabled: true,
        },
        item: {
          ...CardEditableParamsDefault.Obj,
          label: '52-子参数',
          param_params: {
            pic: {
              ...CardEditableParamsDefault.ImageNormal,
              label: '缩略图_52',
              res_type: 'String',  // Array : fileList, String : value
              placeholder: '尺寸严格按照设置的宽高，小于200kb，jpg,jpeg,png格式',
              limit: 1,
              size: 200,
              accept: '.jpg, .jpeg, .png',
            },
            pic_scheme: {
              ...CardEditableParamsDefault.InputNormal,
              label: '图片跳转链接',
              placeholder: '请填入图片跳转链接',
            },
            scheme: {
              ...CardEditableParamsDefault.InputNormal,
              label: '跳转链接_52',
              placeholder: '请填入文字跳转链接',
            },
            title: {
              ...CardEditableParamsDefault.InputNormal,
              label: '标题',
              placeholder: '请填入标题',
            },
            desc1: {
              ...CardEditableParamsDefault.TextareaNormal,
              label: '描述',
              placeholder: '请填入描述',
              param_effect_parent: {
                effect_parent_keys: ['obj_52', 'type'],
                effect_type: ['SHOW_HIDE'],
                effect_parent_val: '1',
                effect_clear: {  // 有则 清除
                  effect_clear_default_val: '',  // default
                },
              },
            },
            price2: {
              ...CardEditableParamsDefault.InputNormal,
              label: '价格',
              placeholder: '请填入价格',
              param_effect_parent: {
                effect_parent_keys: ['obj_52', 'type'],
                effect_type: ['SHOW_HIDE'],
                effect_parent_val: '2',
                effect_clear: {  // 有则 清除
                  effect_clear_default_val: '',  // default
                },
              },
            },
            desc2: {
              ...CardEditableParamsDefault.InputNormal,
              label: '价格类型的描述',
              placeholder: '请填入价格类型的描述',
              param_effect_parent: {
                effect_parent_keys: ['obj_52', 'type'],
                effect_type: ['SHOW_HIDE'],
                effect_parent_val: '2',
                effect_clear: {  // 有则 清除
                  effect_clear_default_val: '',  // default
                },
              },
            },
            object_type: {
              ...CardEditableParamsDefault.DropdownNormal,
              label: '媒体类型',
              placeholder: '请选择媒体类型',
              valLists: [
                {
                  name: '无',
                  value: '',
                },
                {
                  name: 'video',
                  value: 'video',
                },
                {
                  name: 'uid',
                  value: 'uid',
                },
              ],
            },
            Idx_mid: {
              ...CardEditableParamsDefault.InputNormal,
              label: '媒体博文Mid',
              placeholder: '请填入Mid',

              param_effect_parent: {
                effect_parent_keys: ['obj_52', 'item', 'object_type'],
                effect_type: ['SHOW_HIDE'],
                effect_parent_val: 'video',
                effect_clear: {  // 有则 清除
                  effect_clear_default_val: '',  // default
                },
              },
            },
            Idx_uid: {
              ...CardEditableParamsDefault.InputNormal,
              label: 'Uid',
              placeholder: '请填入Uid',

              param_effect_parent: {
                effect_parent_keys: ['obj_52', 'item', 'object_type'],
                effect_type: ['SHOW_HIDE'],
                effect_parent_val: 'uid',
                effect_clear: {  // 有则 清除
                  effect_clear_default_val: null,  // default
                },
              },
            },
          },
        },
      },
    },
    obj_16: {
      ...CardEditableParamsDefault.Obj,
      label: '16参数',
      param_params: {
        item: {
          ...CardEditableParamsDefault.Obj,
          label: '16-子参数',
          param_params: {
            title_sub: {
              ...CardEditableParamsDefault.InputNormal,
              label: '卡片名称',
              placeholder: '请输入卡片名称',

              param_effect_parent: {
                effect_parent_keys: ['obj_16', 'item', 'is_btn'],
                effect_type: ['SHOW_HIDE'],
                effect_parent_val: false,
                effect_clear: {  // 有则 清除
                  effect_clear_default_val: '',  // default
                },
              },
            },
            pic: {
              ...CardEditableParamsDefault.ImageNormal,
              label: '卡片图标_16',
              res_type: 'String',  // Array : fileList, String : value
              placeholder: '请选择图标，png格式',
              limit: 1,
              size: 100,
              accept: '.png',

              param_effect_parent: {
                effect_parent_keys: ['obj_16', 'item', 'is_btn'],
                effect_type: ['SHOW_HIDE'],
                effect_parent_val: false,
                effect_clear: {  // 有则 清除
                  effect_clear_default_val: '',  // default
                },
              },
            },
            scheme: {
              ...CardEditableParamsDefault.InputNormal,
              label: '跳转链接_16',
              placeholder: '请选择跳转链接',

              param_effect_parent: {
                effect_parent_keys: ['obj_16', 'item', 'is_btn'],
                effect_type: ['SHOW_HIDE'],
                effect_parent_val: false,
                effect_clear: {  // 有则 清除
                  effect_clear_default_val: '',  // default
                },
              },
            },
            // is_btn: {
            //   ...CardEditableParamsDefault.SwitchNormal,
            //   label: '是否改为添加卡片按钮',
            // },
            buttons: {
              ...CardEditableParamsDefault.Lists,
              label: '卡片按钮',
              limit: 1,
              param_params: {
                name: {
                  ...CardEditableParamsDefault.InputNormal,
                  label: '按钮名称',
                  placeholder: '插入‘{#num}’替换数字',
                },
                pic: {
                  ...CardEditableParamsDefault.ImageNormal,
                  label: '按钮Icon',
                  res_type: 'String',  // Array : fileList, String : value
                  placeholder: '尺寸严格按照设置的宽高，小于100kb，png格式',
                  limit: 1,
                  size: 100,
                  accept: '.png',
                  // suffix: '_default',
                  tooltips: TooltipsData.image[5],
                },
                pic_default: {
                  ...CardEditableParamsDefault.ImageNormal,
                  label: '按钮Icon(同上)',
                  res_type: 'String',  // Array : fileList, String : value
                  placeholder: '尺寸严格按照设置的宽高，小于100kb，png格式',
                  limit: 1,
                  size: 100,
                  accept: '.png',
                  suffix: '_default',
                  tooltips: TooltipsData.image[6],
                },
                scheme: {
                  // ...CardEditableParamsDefault.InputNormal,
                  // label: '跳转链接',
                  // placeholder: '请选择跳转链接',

                  ...CardEditableParamsDefault.MixedInput,
                  label: '跳转链接',
                  placeholder: '请填入跳转链接',
                  original_type: 'InputNormal',
                  original_type_list: [
                    {
                      value: 'InputNormal',
                      label: '链接',
                    },
                    {
                      value: 'DropdownNormal',
                      label: '弹层',
                    },
                  ],
                  original_type_prop_list: {
                    'DropdownNormal': {
                      data_type: 'PANEL'
                    },
                    'InputNormal': {},
                  },
                  original_type_config_list: {
                    'DropdownNormal': {
                      prefix: 'http://iapib.hd.xxx.com/v1/fcardlist/getPanel?pageNum=',
                      // suffix: '',
                      encode: true,
                      parent: {
                        prefix: 'sinaweibo://pagealert?request_url=',
                        // suffix: '',
                        // encode: false,
                      },
                    },
                    'InputNormal': {},
                  },
                },
                params: {
                  ...CardEditableParamsDefault.Obj,
                  label: '按钮配置',
                  param_params: {
                    action: {
                      ...CardEditableParamsDefault.Action,
                      label: '按钮事件',
                      placeholder: '请选择按钮事件',
                    },
                  },
                },
              },

              param_effect_parent: {
                effect_parent_keys: ['obj_16', 'item', 'is_btn'],
                effect_type: ['SHOW_HIDE'],
                effect_parent_val: true,
                effect_clear: {  // 有则 清除
                  effect_clear_default_val: [],  // default
                },
              },
            },
          },
        },
      },
    },
    ...CardDataEditableParamsCommonDefault,
  };
export default CARD_JY0005216;
